<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-model入门</title>
</head>
<body>
  <div id="app">
    <input type="text" v-model="name"><br>
    {{name}}
  </div>
</body>
<script type="module">
  import {createApp} from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
  createApp({
      data(){
        return {
          name:'vue'
        }
      }
  }).mount("#app");
</script>
</html>